<?php

namespace app\partneradmin\validate;

use think\Validate;

class CustomerServiceGroup extends Validate
{
    //字段规则
    protected $rule = [
        'name' => 'require',
        'partner_id' => 'require'
    ];

    //验证器提示信息
    protected $message = [
        'name.require' => '客服组名字不能为空',
        'partner_id.require' => '请选择客服所属合作方',
    ];

    //使用场景
    protected $scene = [
        'add' => ['name', 'partner_id'],
        'edit' => ['name', 'partner_id'],
    ];
}